import fetch from './config'
export function apiLogin(params) {
  return fetch({
      url: '/users/login',
      method: 'get',
      params
  })
}
export function apiReg(params){
  return fetch({
    url: '/users',
    method:'get',
    params
  })
}
export function isLogin(){
  return fetch({
    url: '/users/isLogin',
    method:'post'
  })
}
export function AddClassName(params){
  return fetch({
    url: '/users/AddClassName',
    method:'post',
    data:params
  })
}
export function ClassName(){
  return fetch({
    url: '/users/ClassName',
    method:'post'
  })
}
export function DelClass(params){
  return fetch({
    url: '/users/DelClass',
    method:'post',
    data:params
  })
}